﻿namespace TakePhotoTogether.Communication.Protocols
{
    public class IdentificationData : PayloadData
    {
        private string identifier;

        public string Identifier
        {
            get { return identifier; }
        }

        public IdentificationData(string userId)
        {
            identifier = userId;
        }

        public IdentificationData(byte[] userIdBytes)
        {
            identifier = Util.GetString(userIdBytes);
        }

        public byte[] ToBytes()
        {
            return Util.GetBytes(identifier);
        }
    }
}
